package cn.itcast.crm.service;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import cn.itcast.crm.domain.Customer;
public interface CustomerService {
	/**
	 * 查询没有关联的用户
	 * @return
	 */
	@Path("/noassociationcustomers")
	@GET
	@Produces({"application/xml","application/json"})
	public List<Customer> findNoAssociationCustomers();
	/**
	 * 查询某个定区关联的用户
	 * @return
	 */
	@Path("/associationfixedareacustomers/{fixedareaid}")
	@GET
	@Produces({"application/xml","application/json"})
	public List<Customer> findHasAssociationFixedAreaCustomers
	(@PathParam("fixedareaid") String fixedAreaId);
	/**
	 * 将用户关联到某个定区
	 * @return
	 */
	@Path("/associationcustomerstofixedarea")
	@PUT
	@Consumes({ "application/xml", "application/json" })
	public void associationCustomersToFixedArea(
			@QueryParam("customerIdStr")String customerIdStr,
			@QueryParam("fixedAreaId")String fixedAreaId);

}